<template>
	<div>
		<div class="title">热销推荐</div>
		<ul>
			<li class="item" v-for="item of recommendList" :key="item.id">
				<img :src="item.imgurl" class="item-img">
				<div class="item-info">
					<p class="item-title">{{item.title}}</p>
					<p class="item-desc">{{item.desc}}</p>
					<button class="item-button">查看详情</button>
				</div>
			</li>
		</ul>
	</div>
</template>

<script>
export default{
	name : "homeRecommend",
	data (){
		return{
			recommendList:[{
				id:"0001",
				imgurl:"https://imgs.qunarzz.com/sight/p0/1409/19/adca619faaab0898245dc4ec482b5722.jpg_200x200_1bc99086.jpg",
				title:"故宫",
				desc:"世界五大宫之首，穿越与您近在咫尺",
			},{
				id:"0002",
				imgurl:"https://imgs.qunarzz.com/sight/p0/1409/19/adca619faaab0898245dc4ec482b5722.jpg_200x200_1bc99086.jpg",
				title:"故宫",
				desc:"世界五大宫之首，穿越与您近在咫尺",
			},{
				id:"0003",
				imgurl:"https://imgs.qunarzz.com/sight/p0/1409/19/adca619faaab0898245dc4ec482b5722.jpg_200x200_1bc99086.jpg",
				title:"故宫",
				desc:"世界五大宫之首，穿越与您近在咫尺",
			},{
				id:"0004",
				imgurl:"https://imgs.qunarzz.com/sight/p0/1409/19/adca619faaab0898245dc4ec482b5722.jpg_200x200_1bc99086.jpg",
				title:"故宫",
				desc:"世界五大宫之首，穿越与您近在咫尺",
			},{
				id:"0005",
				imgurl:"https://imgs.qunarzz.com/sight/p0/1409/19/adca619faaab0898245dc4ec482b5722.jpg_200x200_1bc99086.jpg",
				title:"故宫",
				desc:"世界五大宫之首，穿越与您近在咫尺",
			}],
		}
	}
}
</script>

<style lang="stylus" scoped="">
@import "../../../assets/css/mixins.styl"
	.title
		margin-top .2rem
		line-height .8rem
		background-color #eee
		text-indent .2rem
	.item
		display flex
		height 1.9rem
		overflow hidden
		// background-color red
		.item-img
			height 1.7rem
			width 1.7rem
			padding .1rem
		.item-info
			flex 1
			padding .1rem
			min-width 0
			.item-title
				line-height .54rem
				font-size .32remellipsis()
			.item-desc
				line-height .4rem
				color #ccc
				ellipsis()
			.item-button
				background #ff9300
				padding .1rem
				border-radius 0.06rem
				margin-top .2rem
				color #fff
				line-height .4rem
				
</style>
